import Home from './view/Home/Home.vue'
import About from './view/About/About.vue'
import Detail from './view/Detail/Detail.vue'

const routes = {
  routes: [
    {
      path: '/',
      component: Home,
      redirect: '/about',
      child: [
        {
          path: '/about',
          component: About
        },
        {
          path: '/detail',
          component: Detail
        },
      ]
    },
  ]
}

export default routes